.class public Lcom/waiqin365/lightapp/dailyreport/view/bs;
.super Landroid/widget/BaseAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 0

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bs;->a:Landroid/content/Context;

    iput-object p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/bs;->b:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method public a(Ljava/util/ArrayList;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bs;->b:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/dailyreport/view/bs;->notifyDataSetChanged()V

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bs;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bs;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    const/4 v4, 0x0

    if-nez p2, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bs;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0300f5

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    new-instance v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/dailyreport/view/bt;-><init>(Lcom/waiqin365/lightapp/dailyreport/view/bs;)V

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    const v0, 0x7f0c05c5

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->a:Landroid/widget/ImageView;

    const v0, 0x7f0c05c7

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->b:Landroid/widget/TextView;

    const v0, 0x7f0c05c3

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->c:Landroid/view/View;

    const v0, 0x7f0c05c8

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->d:Landroid/widget/LinearLayout;

    :goto_0
    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->c:Landroid/view/View;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bs;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-eq p1, v0, :cond_2

    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->d:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/waiqin365/lightapp/dailyreport/view/bs;->a:Landroid/content/Context;

    const/high16 v3, 0x41400000    # 12.0f

    invoke-static {v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-virtual {v0, v2, v4, v4, v4}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bs;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/j;

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->a:Landroid/widget/ImageView;

    const v3, 0x7f020159

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    :cond_0
    :goto_2
    iget-object v1, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->b:Landroid/widget/TextView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->b:Ljava/lang/String;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2

    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/bt;

    move-object v1, v0

    goto :goto_0

    :cond_2
    iget-object v0, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4, v4, v4, v4}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    goto :goto_1

    :cond_3
    const-string/jumbo v2, "5"

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->a:Landroid/widget/ImageView;

    const v3, 0x7f02015c

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    :cond_4
    const-string/jumbo v2, "6"

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->a:Landroid/widget/ImageView;

    const v3, 0x7f02015a

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2

    :cond_5
    const-string/jumbo v2, "2"

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/j;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    iget-object v2, v1, Lcom/waiqin365/lightapp/dailyreport/view/bt;->a:Landroid/widget/ImageView;

    const v3, 0x7f02015b

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_2
.end method
